<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Icarous: SBN SPW Module Configuration</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Icarous
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="spw.html">CFS Software Bus Network SPW Module</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">SBN SPW Module Configuration </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><h1>SBN Peer Data File Entry</h1>
<p>The file entry in SbnPeerData.dat for a SPW interface requires 6 fields. The first 4 fields are the fields required of all interface modules: </p><ul>
<li>
Peer Name </li>
<li>
Processor ID </li>
<li>
Protocol ID (? for SPW) </li>
<li>
Spacecraft ID </li>
</ul>
<p>The remaining fields are the interface specific fields that are determined by the device driver's behavior: </p><ul>
<li>
Device Class, as populated on the filesystem by the driver (e.g. 'spw' in '/sys/class') </li>
<li>
Device Instance, as populated on the filesystem by the driver (e.g. 'spw0' in '/dev') </li>
</ul>
<p>The SPW interface does not require any kind of "matching" pairs. An example of SPW entries is below. The Spacewire Device Class and Device Instance values are defined by the device driver and are used by SBN as a description of how the driver initialized the interface on that particular spacecraft.</p>
<table  border="1" cellpadding="2" width="60%">
<tr>
<td width="5%"><b>Name</b> </td><td width="10%"><b>Processor ID</b> </td><td width="10%"><b>Protocol ID</b> </td><td width="10%"><b>Spacecraft ID</b> </td><td width="10%"><b>Device Class</b> </td><td width="10%"><b>Device Instance</b>  </td></tr>
<tr>
<td width="5%">CPU1 </td><td width="10%">1 </td><td width="10%">? </td><td width="10%">0 </td><td width="10%">spw </td><td width="10%">spw0  </td></tr>
<tr>
<td width="5%">CPU2 </td><td width="10%">2 </td><td width="10%">? </td><td width="10%">0 </td><td width="10%">spw </td><td width="10%">spw0  </td></tr>
</table>
<p>Next: <a class="el" href="sbnspwcons.html">SBN SPW Module Constraints</a> <br />
 Prev: <a class="el" href="sbnspwopr.html">SBN SPW Module Operation</a> </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
